const path = require('node:path')
const {merge} = require('webpack-merge')

const baseConfig = require('./base.config')

module.exports = merge(baseConfig, {
  mode: 'production',
  entry: path.resolve(__dirname, '..', 'src/index.js'),
  output: {
    library: 'GengUI',
    libraryExport: 'default',
    libraryTarget: 'umd'
  }
})
